package com.xxlie.auth.repository;

import com.xxlie.auth.domain.User;
import com.xxlie.auth.domain.UserLoginLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Date;

public interface UserLoginLogRepository extends JpaRepository<UserLoginLog, Long>, JpaSpecificationExecutor<UserLoginLog> {
    UserLoginLog save(UserLoginLog userLoginLog);

    int countByUserAndCreateDateAfter(User user, Date createDate);

}
